<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人博客后台管理中心</title>

<#include "common/index_system.ftl">

<script>
var clickMenu = function(url)
{
	$.ajax({
		url:url,
		type:'post',
		dataType:'html',
		cache:false,
		success:function(html)
		{
			$('#page_content').html(html);
		}
	});
}
var exitFn = function(){
	if(!confirm('确认退出么？'))
	{
		return false;
	}
	window.location.href = '${request.contextPath}/system/logout.htm';
}
</script>
</head>
<body style="overflow:hidden;">
    <!--顶部-->
    <div class="top">
            <div style="float: left"><span style="font-size: 16px;line-height: 45px;padding-left: 20px;color: #fff">个人博客后台管理中心</h1></span></div>
            <div id="ad_setting" class="ad_setting">
                <a class="ad_setting_a" href="javascript:; ">116475939@qq.com</a>
                <ul class="dropdown-menu-uu" style="display: none" id="ad_setting_ul">
                    <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-user glyph-icon"></i>个人中心</a> </li>
                    <li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-cog glyph-icon"></i>设置</a> </li>
                    <li class="ad_setting_ul_li"> <a href="javascript:exitFn();"><i class="icon-signout glyph-icon"></i> <span class="font-bold">退出</span> </a> </li>
                </ul>
                <img class="use_xl" src="${request.contextPath}/resources/images/right_menu.png" />
            </div>
    </div>
    <!--顶部结束-->
    <div style="float:left; width: 100%; height: 100%;">
        <!--菜单-->
	    <div class="left-menu">
	        <ul id="menu">
	        	<#list Session.currentUser.menuList as menu1>
	        	 <li class="menu-list">
	                <a style="cursor:pointer" class="firsta"><i  class="glyph-icon xlcd"></i>${menu1.menuName}<s class="sz"></s></a>
	                <ul>
	        		<#list menu1.childrenMenuList as menu2>
	                    <li>
	                    	<a href="javascript:clickMenu('${request.contextPath}${menu2.menuUrl}');" >
	                    		<i class="glyph-icon icon-chevron-right1"></i>
	                    		${menu2.menuName}
	                    	</a>
	                    </li>
	        		</#list>
	        		</ul>
	        	 </li>	
	        	</#list>
	        </ul>
	    </div>
	    
	    <!--菜单右边的iframe页面-->
	    <div id="right-content" class="right-content">
	        <div class="content">
	            <div id="page_content" style="overflow-x:hidden;overflow:scroll;">
	                <html>
					<head>
					</head>
					<body>
					后台欢迎页面
					</body>
					</html>
	            </div>
	        </div>
	    </div>
    </div>

</body>
</html>